import Vue from 'vue'
import App from './App'
import Base, {
	BaseConst
} from "@/common/js/common.js"
import Request from "@/common/js/common/request.js"
import getDicts from "@/common/js/api/dict/data.js"

// 全局组件注册
import UniList from "@/components/uni-list/uni-list.vue"
import UniListItem from "@/components/uni-list-item/uni-list-item.vue"
import UniBadge from "@/components/uni-badge/uni-badge.vue"
import UniSteps from "@/components/uni-steps/uni-steps.vue"
import WeekdayBar from "@/components/weekday-bar/weekday-bar"
import SearchBar from "@/components/search-bar/search-bar"


// #ifdef H5
import VConsole from "@/node_modules/vconsole/dist/vconsole.min.js"
Vue.prototype.vconsole = new VConsole();
// #endif

// 全局组件注册

Vue.prototype.getDicts = getDicts
Vue.component("uni-list", UniList);
Vue.component("uni-list-item", UniListItem);
Vue.component("uni-steps", UniSteps);
Vue.component("uni-badge", UniBadge);
Vue.component("weekday-bar", WeekdayBar);
Vue.component("search-bar", SearchBar);
Vue.config.productionTip = false
Vue.prototype.Base = Base;
Vue.prototype.Request = Request;
Vue.prototype.BaseConst = BaseConst;

App.mpType = 'app'

const app = new Vue({
	...App,
})
app.$mount()

Vue.prototype.$eventHub = new Vue();
